package plp.funcoo.dec.func;

import plp.funcoo.dec.parameter.ParameterList;
import plp.funcoo.expressions.Expression;

public class FuncDefinition {

	protected ParameterList parameters;
	
	protected Expression expression;
	
	public FuncDefinition( ParameterList parameters,
			Expression expression) {
		this.parameters = parameters;
		this.expression = expression;
	}
	public FuncDefinition( FuncDefinition funcDef) {
		this.parameters = funcDef.getParameters().makeCopy();
		this.expression = funcDef.getExpression().makeCopy();
	}

	public ParameterList getParameters() {
		return parameters;
	}

	public void setParameters(ParameterList parameters) {
		this.parameters = parameters;
	}

	public Expression getExpression() {
		return expression;
	}

	public void setExpression(Expression expression) {
		this.expression = expression;
	}

}
